/*
 * @Author: silence
 * @Date: 2022-05-19 17:18:43
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-19 17:32:41
 * @Description: 阿里支付订单model
 */

import 'MyEntityLog.dart';

class AlipayOrderEntity {
  String? status;
  String? pay_type;
  String? trade_type;
  String? order_no;
  String? order_amount;
  String? alipay;
  String? result;

  AlipayOrderEntity({
    this.status,
    this.pay_type,
    this.trade_type,
    this.order_no,
    this.order_amount,
    this.alipay,
    this.result,
  });

  AlipayOrderEntity.fromJson(Map<String, dynamic> json) {
    status = MyEntityLog.handleString(json, 'status');
    pay_type = MyEntityLog.handleString(json, 'pay_type');
    trade_type = MyEntityLog.handleString(json, 'trade_type');
    order_no = MyEntityLog.handleString(json, 'order_no');
    order_amount = MyEntityLog.handleString(json, 'order_amount');
    alipay = MyEntityLog.handleString(json, 'alipay');
    result = MyEntityLog.handleString(json, 'result');
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['pay_type'] = this.pay_type;
    data['trade_type'] = this.trade_type;
    data['order_no'] = this.order_no;
    data['order_amount'] = this.order_amount;
    data['alipay'] = this.alipay;
    data['result'] = this.result;
    return data;
  }
}
